#include"List.h"


void TestList1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPrint(plist);

	LTPushBack(plist, 2);
	LTPrint(plist);

	LTPushBack(plist, 3);
	LTPrint(plist);

	LTPushBack(plist, 4);
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);

	LTPushFront(plist, 1);
	LTPrint(plist);

	LTPushFront(plist, 2);
	LTPrint(plist);

	LTPushFront(plist, 3);
	LTPrint(plist);

	LTPushFront(plist, 4);
	LTPrint(plist);

	LTNode* pos = LTFind(plist, 2);
	pos->data = 10;
	LTPrint(plist);

	LTInsert(pos, 30);
	LTPrint(plist);

	LTDestory(plist);
	
}
int main()
{
	TestList1();
	return 0;

}